package com.heima.model.user.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
//APP用户信息表
@Data
@TableName("ap_user")
public class ApUser implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)//主键
    private Integer id;
    @TableField("salt")//密码、通信等加密盐
    private String salt;
    @TableField("name")//用户名
    private String name;
    @TableField("password")//密码,md5加密
    private String password;
    @TableField("phone")//手机号
    private String phone;
    @TableField("image")//头像
    private String image;
    @TableField("sex")//0 男 1 女 2 未知
    private Boolean sex;
    @TableField("is_certification")//0 未婚 1已婚
    private Boolean certification;
    @TableField("is_identity_authentication")//是否身份认证
    private Boolean identityAuthentication;
    @TableField("status")//0正常 1锁定
    private Integer status;
    @TableField("flag")//0 普通用户  1 自媒体人 2 大V
    private Short flag;
    @TableField("created_time") //注册时间
    private Date createdTime;

}